package com.gettec.lims.client.control;

import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.Window;
import com.gettec.lims.client.NlimsConstants;
import com.gettec.lims.client.services.NnimsServiceAsync;
import com.gettec.lims.client.window.RegSheetWindow;
import com.gettec.lims.client.window.SampleInfoWindow;
import com.gettec.lims.shared.model.RegSheet;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * @author Administrator
 *目前只考虑菜单事件
 */
public class EventController {
	public static void showWindow(String codeString) {
		
String[]codeStrings;
int pageCode,itemCode;
if(codeString.contains("_"))
{
codeStrings=codeString.split("_");
		 pageCode = Integer.parseInt(codeStrings[0]);
		 itemCode = Integer.parseInt(codeStrings[1]);
}
else//如果是进入总菜单项，则
{
	 pageCode = Integer.parseInt(codeString);
	 itemCode= pageCode;
}
		switch (pageCode) {
		case 542748636://委托登记
			RegSheetCTR.showWindow(itemCode);
		case -1510364115://样品信息登记
			SampleInfoCTR.showWindow(itemCode);
		case 1416980460://分派检测复核人员
			
		case -2041675713://填写原始记录
			
		case 1069792744://审核原始记录
			
		default:
			
		
		}
	}
	
	
}
